package com.panfeng.xcloud.boss.provider.rpc.fallback;

import com.alibaba.fastjson.JSON;
import com.panfeng.xcloud.boss.provider.dto.request.SyncBasicInfoReqDTO;
import com.panfeng.xcloud.boss.provider.rpc.assets.AssetsBasicInfoFeignApi;
import com.panfeng.xcloud.common.core.web.vo.ResponseVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;

@Slf4j
@Component
public class AssetsBasicInfoFeignApiFallback implements AssetsBasicInfoFeignApi {

	@Override
	public ResponseVO syncBasicInfo(@RequestBody SyncBasicInfoReqDTO syncBasicInfoReqDTO) {
		log.warn("请求处理异常，触发熔断，请注意查看，syncBasicInfo={}", (null != syncBasicInfoReqDTO ? JSON.toJSONString(syncBasicInfoReqDTO):""));
		return null;
	}

}
